package pers.cocoadel.springcloud.service;


import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import pers.cocoadel.springcloud.entities.CommonResult;
import pers.cocoadel.springcloud.entities.Payment;
import pers.cocoadel.springcloud.service.impl.PaymentServiceFallbackImpl;

/**
 * @author rwby
 */
@FeignClient(value = "CLOUD-PAYMENT-SERVICE", fallback = PaymentServiceFallbackImpl.class)
public interface PaymentService
{
    @GetMapping("/payment/ok")
    String getPaymentOk();

    @GetMapping("/payment/time_out")
    String getPaymentTimeOut();
}
